synthetic division for polynomial